package com.wei.czz.common.vo.store;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Submit;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-11-22 17:56:31
 * className: StoreVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class StoreVo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { Update.class })
    private Long id;

    /**
     * 业务主键
     */
    @NotNull(message = "业务主键不能为空", groups = { Save.class, Submit.class, Update.class })
    private Long businessId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { Save.class, Submit.class, Update.class })
    private String name;

    /**
     * 省份
     */
    @NotNull(message = "省份不能为空", groups = { Submit.class, Update.class})
    private Integer addressProvince;

    /**
     * 城市
     */
    @NotNull(message = "城市不能为空", groups = { Submit.class, Update.class})
    private Integer addressCity;

    /**
     * 区县
     */
    @NotNull(message = "区县不能为空", groups = { Submit.class, Update.class})
    private Integer addressDistrict;

    /**
     * 街道
     */
    private Integer addressStreet;

    /**
     * 详细门牌号
     */
    @NotBlank(message = "详细门牌号不能为空", groups = { Submit.class, Update.class})
    private String address;

    /**
     * 面积（小数点后两位）
     */
    @NotNull(message = "面积不能为空", groups = { Submit.class, Update.class})
    private Double area;

    /**
     * 经营大类
     */
    @NotNull(message = "经营大类不能为空", groups = { Submit.class, Update.class})
    private Integer mainClass;

    /**
     * 经营小类
     */
    @NotNull(message = "经营小类不能为空", groups = { Submit.class, Update.class})
    private Integer subClass;

    /**
     * 状态
     */
    private Integer status;

}
